home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / Prograph Classic 2.6.1 / Prograph Reference Manual / Prograph Reference 5-7 / Prograph Reference 5-7.rsrc / TEXT_171.txt < prev    next >
Encoding:
Text File  |  1995-10-25  |  7.6 KB  |  292 lines

  1.  
  2.  System
  3.  
  4. These primitives allow you to list elements of Prograph programs. Many of these primitives accept strings as inputs to specify classes and attributes. A string specifying a class must be the name of an existing class, and a string specifying an attribute in a class must be the name of an attribute in that class. Some System primitives find comments associated with Prograph elements. If the element has no comment, the result is NULL.
  5.  
  6.  
  7. _________________________________________________
  8.  
  9.                                    ancestors     *339*
  10.  
  11.  
  12. Input types: <any class> | string
  13.  
  14. Output types: list
  15.  
  16. Description:     Ancestors is the list of names of ancestor classes of the class specified by Instance or ClassName. 
  17.  
  18.  
  19. _________________________________________________
  20.  
  21.                                                               attr-com     *339*
  22.  
  23.  
  24. Input types: <any class> | string ;  string
  25.  
  26. Output types: string | null
  27.  
  28. Description:     Comment is the comment associated with the attribute called AttrName of the class specified by Instance or ClassName.
  29.  
  30. Compiler: Always returns NULL.
  31.  
  32.  
  33. _________________________________________________
  34.  
  35.                                                 attributes     *340*
  36.  
  37.  
  38. Input types: <any class> | string
  39.  
  40. Output types: list;  list
  41.  
  42. Description:     ClassAttrs and Instance Attrs are respectively the lists of names of class and instance attributes of the class specified by ClassName or Instance.
  43.  
  44.  
  45. _________________________________________________
  46.  
  47.                                                     called-from-get    *340*
  48.  
  49.  
  50.  
  51. Input types:     string; string
  52.  
  53. Output types:     list; list; list
  54.  
  55. Description:    Returns a list of names of methods which are called by the input get method. The outputs are NULL if no such method exists.
  56.  
  57. Compiler:    Not supported.
  58.  
  59.  
  60. _________________________________________________
  61.  
  62.                                                    called-from-meth    *340*
  63.  
  64.  
  65.  
  66. Input types:     string | NONE ; string
  67.  
  68. Output types:     list; list; list
  69.  
  70. Description:    Returns a list of names of methods which are called by the input method. If Class is NONE, Method is a universal method. The outputs are NULL if no such method exists.
  71.  
  72. Compiler:    Not supported.
  73.  
  74.  
  75. _________________________________________________
  76.  
  77.                                                    called-from-set    *341*
  78.  
  79.  
  80.  
  81. Input types:     string; string
  82.  
  83. Output types:     list; list; list
  84.  
  85. Description:    Returns a list of names of methods which are called by the input set method. The outputs are NULL if no such method exists.
  86.  
  87. Compiler:    Not supported.
  88.  
  89.  
  90. _________________________________________________
  91.  
  92.                                                  calls-to-get     *341*
  93.  
  94.  
  95.  
  96. Input names:     Attribute; CallType
  97.  
  98. Input types:     string; string
  99.  
  100. Output names:     Methods; GetMethods; SetMethods
  101.  
  102. Output types:     list; list; list
  103.  
  104. Description:    Returns a list of names of methods which get the input attribute. 
  105. CallType is direct, indirect, or all.
  106.  
  107. Compiler:    Not supported.
  108.  
  109.  
  110. _________________________________________________
  111.  
  112.                                                            calls-to-meth    *342*
  113.  
  114.  
  115.  
  116. Input names:     Class; Method; CallType
  117.  
  118. Input types:     string | NONE; string; string
  119.  
  120. Output names:     Methods; GetMethods; SetMethods
  121.  
  122. Output types:     list; list; list
  123.  
  124. Description:    Returns a list of method names that call the input method. If Class is NONE, Method is a universal. CallType is data, explicit, or all.
  125.  
  126. Compiler:    Not supported.
  127.  
  128.  
  129. _________________________________________________
  130.  
  131.                                                calls-to-set     *342*
  132.  
  133.  
  134.  
  135. Input names:     Attribute; CallType
  136.  
  137. Input types:     string; string
  138.  
  139. Output names:     Methods; GetMethods; SetMethods
  140.  
  141. Output types:     list; list; list
  142.  
  143. Description:    Returns a list of names of methods which set the input attribute. CallType is direct, indirect, or all.
  144.  
  145. Compiler:    Not supported.
  146.  
  147.  
  148. _________________________________________________
  149.  
  150.                                      children     *342*
  151.  
  152.  
  153. Input types: <any class> | string
  154.  
  155. Output types: list
  156.  
  157. Description:     Children is the list of names of classes that inherit directly from the class specified by Instance or ClassName. 
  158.  
  159.  
  160. _________________________________________________
  161.  
  162.                                    class-com     *343*
  163.  
  164.  
  165. Input types: Class | string
  166.  
  167. Output types: string | null
  168.  
  169. Description:     Comment is the comment associated with the class specified by Instance or ClassName.
  170.  
  171. Compiler: Always returns NULL.
  172.  
  173.  
  174. _________________________________________________
  175.  
  176.                                    classes     *343*
  177.  
  178. Output types: list
  179.  
  180. Description:     Classes is a list of the names of all classes.
  181.  
  182.  
  183. _________________________________________________
  184.  
  185.                                   descendants    *343*
  186.  
  187.  
  188. Input names: Instance | ClassName
  189.  
  190. Input types: <instance> | string
  191.  
  192. Output types: list of string
  193.  
  194. Description: Accept Instance or Name of the class. Returns a list of the names of all descendant classes.
  195.  
  196. See also: children, ancestors
  197.  
  198.  
  199. _________________________________________________
  200.  
  201.                                                              meth-com     *343*
  202.  
  203.  
  204. Input types: <any class> | string;  string
  205.  
  206. Output types: string | null
  207.  
  208. Description:     Comment is the comment associated with the simple method called MethName (or initialization method if MethName is ¬´¬ª) in the class specified by Instance or ClassName. 
  209.  
  210. Compiler: Always returns NULL.
  211.  
  212.  
  213. _________________________________________________
  214.  
  215.                                                           meth-com-g    *344*
  216.  
  217.  
  218. Input types: <any class> | string;  string
  219.  
  220. Output types: string
  221.  
  222. Description:     Comment is the comment associated with the get method called MethName in the class specified by Instance or ClassName.
  223.  
  224. Compiler: Always returns NULL.
  225.  
  226.  
  227. _________________________________________________
  228.  
  229.                                                               meth-com-s    *344*
  230.  
  231.  
  232. Input types: <any class> | string;  string
  233.  
  234. Output types: string
  235.  
  236. Description:     Comment is the comment associated with the set method called MethName in the class specified by Instance or ClassName.
  237.  
  238. Compiler: Always returns NULL.
  239.  
  240.  
  241. _________________________________________________
  242.  
  243.                                                         methods     *344*
  244.  
  245.  
  246.  
  247. Input types: class | string | none
  248.  
  249. Output types: list; list; list
  250.  
  251. Description:     If input is Instance or ClassName, then Methods, GetMethods, and SetMethods are respectively lists of the names of simple or initialization methods, get methods, and set methods in the class specified by Instance or ClassName. If input is None, Methods is the list of names of Universal methods, and GetMethods and SetMethods are both ().
  252.  
  253. Compiler: No distinction is made between Universal methods and primitives.  If input is NONE, Methods is a list of names of Universal methods and primitives.
  254.  
  255.  
  256. _________________________________________________
  257.  
  258.                                  pers-com     *345*
  259.  
  260.  
  261. Input types: string
  262.  
  263. Output types: string
  264.  
  265. Description:     Comment is the comment associated with the persistent called Name.
  266.  
  267. Compiler: Always returns NULL.
  268.  
  269.  
  270. _________________________________________________
  271.  
  272.                                   persistents     *345*
  273.  
  274.  
  275. Output types: string
  276.  
  277. Description:     Persistents is the list of names of all persistents.
  278.  
  279.  
  280. _________________________________________________
  281.  
  282.                                                             settable     *345*
  283.  
  284.  
  285. Input types: string | <any class>;  string
  286.  
  287. Output types: integer
  288.  
  289. Description:     Tests if Attribute of the class referenced by ClassName or instance is currently settable. Result is 0 if settable, 1 if conditionally settable, and 2 if not settable.
  290.  
  291. Compiler: Not supported.
  292.